package com.kaishengit.dao;

import java.util.List;

import org.springframework.orm.hibernate3.HibernateTemplate;

import com.kaishengit.pojo.User;

public class UserDao {

	private HibernateTemplate template;

	public void setTemplate(HibernateTemplate template) {
		this.template = template;
	}
	
	@SuppressWarnings("unchecked")
	public List<User> findAll(){
		return template.find("from User");
	}
	
	
}
